// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.ClassificationDao;
import com.liuxinlong.modules.entity.Classification;
import com.liuxinlong.modules.mapper.ClassificationMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年3月3日
 */
@Service
public class ClassificationDaoImpl extends ServiceImpl<ClassificationMapper, Classification> implements ClassificationDao {
	@Override
	public List<Classification> pageClassificationList(Map<String, Object> queryParam) {
		return baseMapper.pageClassificationList(queryParam);
	}

	@Override
	public int getClassificationCount(Map<String, Object> queryParam) {
		return baseMapper.getClassificationCount(queryParam);
	}

	@Override
	public Map<String, Map<String, String>> getClassificationMap() {
		return baseMapper.getClassificationMap();
	}


	@Override
	public List<Classification> getParentClassificationList() {
		return baseMapper.getClassificationList();
	}

	@Override
	public List<Classification> getSubClassificationList(String id) {
		return baseMapper.getSubClassificationList(id);
	}

}
